<template>
  <div>
    <el-table
        ref="table"
        @select="onSelectChange"
        :data="dataSource" style="width: 100%">
      <el-table-column type="selection" width="55"></el-table-column>
      <el-table-column prop="ctreateByName" label="Date" width="180" />
      <el-table-column prop="cumulativePeriod" label="Name" width="180" />
      <el-table-column prop="workFaceName" label="Address" />
      <el-table-column label="Operations">
        <template #default="scope">
          <el-button link type="primary" size="small" @click="handleDetail(scope.row)">Detail</el-button>
          <el-button link type="primary" size="small">Edit</el-button>
        </template>
      </el-table-column>
    </el-table>
    <el-pagination
        layout="prev, pager, next"
        @current-change="handleTableChange"
        :total="total">
    </el-pagination>
  </div>
</template>

<script>
import { ZxListMixin } from '@/utils/mixins/ZxListMixin'
export default {
  name: "zxTableView",
  mixins: [ZxListMixin],
  props:{
    columns: {
      type: Array,
      default(){
        return []
      }
    },
    queryParam: {
      type: Object,
      default(){
        return {}
      }
    },
    list: {
      type: String,
      default(){
        return ''
      }
    },
  },
  data(){
    return {
      url: {
        list: this.list
      }
    }
  }
}
</script>

<style scoped>

</style>